import requests

resp = requests.get("http://www.baidu.com")

print(resp.status_code)

resp.encoding='utf-8'
print(resp.text)


